import Snippet from '~/components/snippet'
import Caption from '~/components/text/caption'
import { InlineCode } from '~/components/text/code'
import Note from '~/components/text/note'

export const meta = {
  editUrl: 'pages/docs/now-cli/now-cli-mdx/commands/whoami.mdx',
  lastEdited: '2019-10-15T22:03:42.000Z'
}

## Whoami

The `now whoami` command is used to show the username of the user currently logged into [Now CLI](/download).

<Note type="warning">
  This command is for <b>advanced use only</b>. You can see the name of the
  currently active account with the <InlineCode>now switch</InlineCode> command.
</Note>

### Basic Usage

<Snippet dark text="now whoami" />
<Caption>Using the <InlineCode>now whoami</InlineCode> command to view the username of the user currently logged into Now CLI.</Caption>

### Global Options

The following [global options](#options) can be passed when using the `now whoami` command:

- `--debug`
- `--global-config`
- `--help`
- `--local-config`
- `--token`

For more information on global options and their usage, refer to the [options section](#options).
